

#import "ISGNoDataView.h"
#import "UIColor+Hex.h"
#import "UIView+ZLExtension.h"
@implementation ISGNoDataView

- (instancetype )initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self placeholderViewLoad];
    }
    return self;
}

- (void)placeholderViewLoad{
    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"list_empty"]];
    [imageView sizeToFit];
    imageView.center = CGPointMake(Width / 2.0, (Height - 200) / 2.0);
    [self addSubview:imageView];
    
    UILabel *label1 = [UILabel new];
    label1.text = @"这里什么都没有，您可以看看其他的...";
    label1.font = [UIFont systemFontOfSize:13.0];
    label1.textColor = [UIColor colorWithHex:0x999999];
    [label1 sizeToFit];
    label1.zl_y = imageView.zl_y + imageView.zl_height + 30;
    label1.zl_centerX = imageView.zl_centerX;
    [self addSubview:label1];
}
@end
